import request from '@/utils/request'

// 查询假期申请列表
export function listApplication(query) {
  return request({
    url: '/business/jqVacationReport/list',
    method: 'get',
    params: query
  })
}

// 查询假期申请详细
export function getApplication(query) {
  return request({
    url: '/business/jqVacationReport/detail',
    method: 'get',
    params: query
  })
}

// 新增假期申请
export function addApplication(data) {
  return request({
    url: '/business/jqVacationReport',
    method: 'post',
    data: data
  })
}

// 修改假期申请
export function updateApplication(data) {
  return request({
    url: '/business/jqVacationReport',
    method: 'put',
    data: data
  })
}

// 删除假期申请
export function delApplication(id) {
  return request({
    url: '/business/jqVacationReport/' + id,
    method: 'delete'
  })
}
// 修改假期报告信息
export function changeReport(data) {
  return request({
    url: '/business/employee/base/modifyVacation',
    // url: '/business/jqVacationReport/changeReport',
    method: 'post',
    data: data
  })
}
